﻿Imports DTO


Public Class GiayToTuyThan_DAO
    Public Shared Function loadData() As List(Of GiayToTuyThan_DTO)
        Dim ds As New List(Of GiayToTuyThan_DTO)
        Dim dt As DataTable
        dt = DataProvider.loadDataTable("Select *from GiayToTuyThan")
        For Each dr As DataRow In dt.Rows
            Dim gt As New GiayToTuyThan_DTO
            gt.maGTTT = dr(0)
            gt.tenGTTT = dr(1).ToString
            ds.Add(gt)
        Next
        Return ds
    End Function
End Class
